import request from './request.js'
let userid=''
if(localStorage.getItem('userInfo')==null){
    userid=''
}else{
    userid=JSON.parse(localStorage.getItem('userInfo')).userId
}
// 禁用博客
export function forbiddens(param){
    return request({
        url:`/api/blog/disabled`,
        method:'PUT',
        data:param,
        headers: {
            'api-type': 1,
            'userid':userid,
        },
    })
}